/*
 * Selling Partner API for Fulfillment Inbound
 * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
 *
 * OpenAPI spec version: v0
 */


package com.dhecp.project.api.domain;

import com.dhecp.project.api.client.model.ErrorList;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Objects;

/**
 * The response schema for the getTransportDetails operation.
 */
@ApiModel(description = "The response schema for the getTransportDetails operation.")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-10-14T16:02:28.581+08:00")
public class GetTransportDetailsResponse {
  @SerializedName("payload")
  private GetTransportDetailsResult payload = null;

  @SerializedName("errors")
  private ErrorList errors = null;

  public GetTransportDetailsResponse payload(GetTransportDetailsResult payload) {
    this.payload = payload;
    return this;
  }

   /**
   * The payload for the getTransportDetails operation.
   * @return payload
  **/
  @ApiModelProperty(value = "The payload for the getTransportDetails operation.")
  public GetTransportDetailsResult getPayload() {
    return payload;
  }

  public void setPayload(GetTransportDetailsResult payload) {
    this.payload = payload;
  }

  public GetTransportDetailsResponse errors(ErrorList errors) {
    this.errors = errors;
    return this;
  }

   /**
   * Get errors
   * @return errors
  **/
  @ApiModelProperty(value = "")
  public ErrorList getErrors() {
    return errors;
  }

  public void setErrors(ErrorList errors) {
    this.errors = errors;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    GetTransportDetailsResponse getTransportDetailsResponse = (GetTransportDetailsResponse) o;
    return Objects.equals(this.payload, getTransportDetailsResponse.payload) &&
        Objects.equals(this.errors, getTransportDetailsResponse.errors);
  }

  @Override
  public int hashCode() {
    return Objects.hash(payload, errors);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class GetTransportDetailsResponse {\n");
    
    sb.append("    payload: ").append(toIndentedString(payload)).append("\n");
    sb.append("    errors: ").append(toIndentedString(errors)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}

